package cc.comac.saic.hkhy.jsrj.gj.inttools.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum AsyncTaskType {
    INT_TOOL_DATA_PARSE("int-tool-data-parse", "工具链数据解析"),

    ;


    private final String key;
    private final String name;

    public static AsyncTaskType getFileTypeByCode(String code) {
        for (AsyncTaskType fileType : AsyncTaskType.values()) {
            if (fileType.getKey().equals(code)) {
                return fileType;
            }
        }
        return null;
    }
}
